<%-- 
    Document   : login
    Created on : 7-dic-2011, 13.01.11
    Author     : sestari
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<f:view>       
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <link rel="stylesheet" type="text/css" href="login-box.css" />

        <f:loadBundle basename="message.message" var="msg"/>        
        <title> <h:outputText value="#{msg.paginalogin}"/> </title>

    </head>
    <body>
        <h:form>
            <h:commandLink action="#{linguaggio.getIt()}"> <h:graphicImage value="/images/it.gif" style="border: 0px" width="50"/></h:commandLink>
            <h:commandLink action="#{linguaggio.getPt()}"> <h:graphicImage value="/images/br.gif" style="border: 0px" width="48"/> </h:commandLink>             
        </h:form>
        <br>
        <h:form>
        <h:commandButton value="SMS" action="clientsms" styleClass="button"/>
        </h:form>
        <h:inputHidden id="pool_c" value="#{pool.pool}"/>
        <div id="div_pricipal">
            <center>
                <h:form  id="formulario">
                    <div id="div_login">
                        <div id="titulo">
                            <b><h:outputText value="#{msg.benvenuto}"/></b>
                        </div>
                        <div id="sub_titulo">
                            Rodrigo Sestari / Renato Recla
                        </div>


                        <div style="margin-top: 10px;">
                            <div id="div_descricao_campo" style="margin-top:20px;">
                                <h:outputText value="#{msg.nome}" /> 
                            </div>
                            <div id="div_campo" style="margin-top:20px;">
                                <h:inputText  id="user" value="#{user.username}"   styleClass="form-login" required="true" requiredMessage="Invalid!" />                    
                                <h:message for="user" styleClass="errors" showSummary="no" />
                            </div>

                            <div id="div_descricao_campo">
                                <h:outputText value="#{msg.pass}"/> 
                            </div>
                            <div id="div_campo">
                                <h:inputSecret id="pass" value="#{user.password}"  styleClass="form-login" required="true" requiredMessage="Invalid!"/>                    
                                <h:message for="pass" styleClass="errors" showSummary="no" />
                            </div>

                            <span class="div_checkbox">
                                <h:messages globalOnly="true" styleClass="errors"/>                
                            </span>

                            <div style="margin-top: 10px; text-align: left; margin-left: 100px;">

                                <h:commandButton  value="#{msg.entrare}" action="#{user.falogin()}" styleClass="button" />
                                <h:commandButton value="#{msg.reset}" type="reset" styleClass="button"/>                                

                            </div>
                        </div>
                    </div>
                </h:form>
            </center>
        </div>

    </body>
</html>
</f:view>

